package org.jeecg.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 半成品销售订单进度表
 */
@Data
@TableName("oms_semi_product_sales_order_progress")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SemiProductSalesOrderProgress对象", description = "半成品销售订单进度表")
public class SemiProductSalesOrderProgress implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    
    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    private String orderId;
    
    /**
     * 原状态
     */
    @Excel(name = "原状态", width = 15, dicCode = "order_status")
    @Dict(dicCode = "order_status")
    @ApiModelProperty(value = "原状态")
    private Integer oldStatus;
    
    /**
     * 新状态
     */
    @Excel(name = "新状态", width = 15, dicCode = "order_status")
    @Dict(dicCode = "order_status")
    @ApiModelProperty(value = "新状态")
    private Integer newStatus;
    
    /**
     * 状态变更时间
     */
    @Excel(name = "变更时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "状态变更时间")
    private Date changeTime;
    
    /**
     * 操作人ID
     */
    @ApiModelProperty(value = "操作人ID")
    private String operatorId;
    
    /**
     * 操作人姓名
     */
    @Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人姓名")
    @TableField(exist = false)
    private String operatorName;
    
    /**
     * 操作类型
     */
    @Excel(name = "操作类型", width = 15)
    @ApiModelProperty(value = "操作类型")
    private String operationType;
    
    /**
     * 操作内容
     */
    @Excel(name = "操作内容", width = 30)
    @ApiModelProperty(value = "操作内容")
    private String operationContent;
    
    /**
     * 变更原因
     */
    @Excel(name = "变更原因", width = 30)
    @ApiModelProperty(value = "变更原因")
    private String changeReason;
    
    /**
     * 备注
     */
    @Excel(name = "备注", width = 30)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
